package cn.stylefeng.guns.modular.Dishes.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class dishesParam extends BaseParam {

    @NotNull(message = "id不能为空",groups = {edit.class,delete.class})
    private Long id;

    @NotNull(message = "名字不能为空",groups = {add.class,edit.class})
    private String name;

    @NotNull(message = "图片不能为空")
    private String avatar;

    @NotNull(message = "remark",groups = {add.class,edit.class})
    private String remark;

    @NotNull(message = "评分不能为空",groups = {add.class,edit.class})
    private float score;

    @NotNull(message = "状态（字典 0正常 1冻结 2删除）不能为空",groups = {add.class,edit.class})
    private Integer status;


}
